package com.ruoyi.consumer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.consumer.mapper.CompanyBindMapper;
import com.ruoyi.consumer.domain.CompanyBind;
import com.ruoyi.consumer.service.ICompanyBindService;

/**
 * 绑定员工Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-10
 */
@Service
public class CompanyBindServiceImpl implements ICompanyBindService 
{
    @Autowired
    private CompanyBindMapper companyBindMapper;

    /**
     * 查询绑定员工
     * 
     * @param bindId 绑定员工主键
     * @return 绑定员工
     */
    @Override
    public CompanyBind selectCompanyBindByBindId(Integer bindId)
    {
        return companyBindMapper.selectCompanyBindByBindId(bindId);
    }

    /**
     * 查询绑定员工列表
     * 
     * @param companyBind 绑定员工
     * @return 绑定员工
     */
    @Override
    public List<CompanyBind> selectCompanyBindList(CompanyBind companyBind)
    {
        return companyBindMapper.selectCompanyBindList(companyBind);
    }

    /**
     * 新增绑定员工
     * 
     * @param companyBind 绑定员工
     * @return 结果
     */
    @Override
    public int insertCompanyBind(CompanyBind companyBind)
    {
        return companyBindMapper.insertCompanyBind(companyBind);
    }

    /**
     * 修改绑定员工
     * 
     * @param companyBind 绑定员工
     * @return 结果
     */
    @Override
    public int updateCompanyBind(CompanyBind companyBind)
    {
        return companyBindMapper.updateCompanyBind(companyBind);
    }

    /**
     * 批量删除绑定员工
     * 
     * @param bindIds 需要删除的绑定员工主键
     * @return 结果
     */
    @Override
    public int deleteCompanyBindByBindIds(Integer[] bindIds)
    {
        return companyBindMapper.deleteCompanyBindByBindIds(bindIds);
    }

    /**
     * 删除绑定员工信息
     * 
     * @param bindId 绑定员工主键
     * @return 结果
     */
    @Override
    public int deleteCompanyBindByBindId(Integer bindId)
    {
        return companyBindMapper.deleteCompanyBindByBindId(bindId);
    }
}
